const files = require.context('.', false, /\.jsx?$/)



const modules = {};
// const getters = {};
files.keys().forEach(key => {
  if (key === "./index.jsx") return;

  const str = key.replace(/(\.\/|\.jsx?)/g, "");
  const mKey = str.slice(0, 1).toUpperCase() + str.slice(1);

  modules[mKey] = files(key).default;

  // getters[mKey] = data => {
  //   return data[mKey];
  // };
});



// console.log(modules)
// 
module.exports =modules;